home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / 8bit / cislib_b / sftbll.doc < prev    next >
Text File  |  1995-04-22  |  6KB  |  35 lines

  1. SOFTBALL STATISTICS PROGRAM 
  2. -------- ---------- ------- 
  3.  
  4. NOTE ON LANGUAGE: This program was uploaded in LISTed BASIC A+. To use with BASIC A+, just ENTER the program, and then SAVE a copy (see note on "starting" below). According to OSS, people with BASIC XL/XE can also ENTER and then SAVE the program with their type of BASIC and it will work fine.  However, I use PRINT USING and IF:THEN:ELSE commands in the program, so it is **NOT** compatable with ATARI BASIC. 
  5.  
  6. NOTE ON STARTING: Be sure that you give the program the file name "SOFTBALL.BAP" (actually, any name with an extender). 
  7.  
  8. NOTE ON PRINTERS: All output from this program is formmatted in 80 columns.  Therefore, I do not have any statistical data output to the screen. The first option you have when the program starts is choosing Epson or 1020 Plotter for your printer. The only Epson specific codes in the program produce enlarged titles on each data sheet, and call for the form feed at the end of a data sheet.  These are in lines 1230, 1610, 1680, 1690, 2180, 2410, and 2790 and could be changed for your printer type.  If you choose 1020 plotter for your printer it is set to 80 columns mode. 
  9.  
  10.    THE PROGRAM 
  11.    --- ------- 
  12.  
  13. The first thing you do is to choose between an Epson printer and the 1020 plotter.  <RETURN> defaults to Epson.  Otherwise, hit <1> and <RETURN> for a 1020 plotter. 
  14.  
  15. After that, if you haven't used the program before, you are requested to enter the team name.  This can be up to 30 characters long.  The inverse "A" in "max" is 30 characters from the margin and can be used as a guide.  (Other prompts in the program have inverse characters at maximum length, also.) 
  16.  
  17. Next you are shown the main menu.  I'll explain the "INPUT DATA" choice later; the other choices are pretty much self-explanatory.  "PRINT ALL STATS" prints out each player's stats, plus a sheet containing the totals for all team players.  "PRINT TEAM TOTALS" just prints out the team totals sheet.  "PRINT INDIVIDUAL STATS" allows you to print one player's stats at a time, choosing the player from a menu.  "QUIT" returns you to BASIC. 
  18.  
  19. When you choose either "PRINT ALL STATS" or "PRINT TEAM STATS", you are given the option of having two B/GRAPH data files created. One is a B/GRAPH bar chart depicting the batting averages, on-base percentages, and the slugging percentages of the team players.  The file created is called "STATS.BAR".  The other is a pie chart based on number of RBIs for each player. This file is called "RBIS.PIE". (Due to the 16 element limitation on pie charts, this file will not be created if there are more than 16 players on your team.)  At the prompt asking if files should be created, <RETURN> defaults to "N". 
  20.  
  21. When you choose "INPUT DATA" the following things happen. The first time you enter data, the "INPUT DATA" menu only has two options: "ADD NEW NAME" and "MAIN MENU". Choosing "MAIN MENU" puts you back in the first menu.  "ADD NEW NAME" lets you start your data base.  When you add a new name, you are requested to type in a file name for that player.  Each player will get a file, so choose something like the the players first name and initial to help you remember which file is for which player.  This is   a DOS file name, so only use alphanumerics.  Also, don't use an extender (e.g., ".ddd").  As the prompt states, the drive number will be added for you.  When it asks if the file name is OK, <RETURN> defaults to "Y".  You will then be promted to type in the player's name.  The name you use will be the name printed out in the stats for that player. 
  22.  
  23. You only need to go through these preliminaries once for each player.  Subsequent entries in the data base  for that player will start at the following point. 
  24. You will be prompted for the name of the opponent, the player's number of at-bats, singles, doubles, triples, homers, walks, errors, runs scored, and runs batted in.  For each new game you have to enter the name of the opponent only once.  After you enter it for the first player, just hitting <RETURN> at the opponent prompt for each later player will enter the same opponent name for that player.  You can type in a new opponent if you wish. 
  25.  
  26. After you have the opponent name entered, other stats (e.g., singles, doubles, etc.) need to be enter.  However, if a stat is "zero", you can just hit <RETURN> and a "zero" will be entered for you.  When you have entered the last stat for a player, you will be given the chance to alter any of the data, from opponent through RBI's.  The cursor will go to the opponent data.  Change it if needed, otherwise hit <RETURN>.  The cursor will then go through each of the other data elements.  <RETURN> accepts them as they are printed on the screen.  When you are done, you once again have the choice of editing the data.  <RETURN> defaults to "Y" (data is OK). 
  27.  
  28. The next prompt asks if you want to CONTINUE DATA INPUT. <RETURN> defaults to "Y". "N" puts you back in the main menu, where you can have the stats printed out.  "Y" returns you to the player input data level where you can add new players, or input data in files of existing players.  "MAIN MENU" is always the last option of this menu.  "ADD NEW NAME" is always the second to the last option. 
  29.  
  30. When printing the data, DMA is turned off until the printing is done.  Also, team stats are printed in order of highest batting average first. 
  31.  
  32. After the season is over, you can use the global rename command "*,*.86" to rename your player files so that you are ready for the next year, but still have the old files available.  Putting an extender on the file means that it will be ignored by the program. 
  33.  
  34. REmember that only player data files can be on the disk without extenders on their file name.  The program assumes that any file name without an extender is a current player data file and will try to enter data from it into the program when printing out stats.  If you get garbage at the bottom of your printout, you may have a nonplayer data file on your disk without an extender. All files with extenders are ignored. 
  35. DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD